<div class="allLeft">
    <div class="top">
        <p>
            <?= $this->product_category['category_name']; ?>
        </p>
    </div>
    <div class="cen">
        <div class="swiper-container leftSwiper">
            <div class="swiper-wrapper">
                <?php if ($this->product_category) : $i = 0; ?>
                    <?php foreach ((array)$this->product_category as $key => $val):  ?>
                        <?php
                            if (is_array($val)) :
                                $_tmpLink = App\Tools\UrlHelper::getTypeUrl($this->aryCategoryDataView, $val['id_tree']);
                            endif;
                        ?>
                        <?php if ($key > 0 && $val['language'] == $this->__LANGUAGE_ID__) :?>
                            <div class="swiper-slide
                            <?php if ($this->categoryLevel == 3 && $this->categoryId == $key) { ?>
                                cur
                            <?php } elseif ($i == 0 && in_array($this->categoryLevel, array(1,2))) { ?>
                                cur
                             <?php $i++; } ?> ">
                                <a href="<?= $_tmpLink ?>">
                                    <?= $val['category_name']; ?>
                                </a>
                            </div>
                        <?php endif; ?>
                    <?php endforeach; ?>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>